<?php

class MM_Model_SyncPacket extends Mediad2_Model_Abstract
{
	/**
	 * const
	 */
	const MODIFYTYPE_INSERT = 1;
	const MODIFYTYPE_UPDATE = 2;
	const MODIFYTYPE_DELETE = 3;
	
	/**
	 * var
	 */
	protected $table;		//表名
	protected $modifytype;	//同步数据类型，insert/udpate/delete
	protected $columnNum;	//本数据包同步的数据有多少个字段
	protected $rowNum;		//本数据包包含多少行数据
	protected $columns;		//字段名称的集合
	protected $rows;		//数据的集合

	/**
     * @return the $table
     */
    public function getTable ()
    {
        return $this->table;
    }

	/**
     * @return the $modifytype
     */
    public function getModifytype ()
    {
        return $this->modifytype;
    }

	/**
     * @return the $columnNum
     */
    public function getColumnNum ()
    {
        return $this->columnNum;
    }

	/**
     * @return the $rowNum
     */
    public function getRowNum ()
    {
        return $this->rowNum;
    }

	/**
     * @return the $columns
     */
    public function getColumns ()
    {
        return $this->columns;
    }

	/**
     * @return the $rows
     */
    public function getRows ()
    {
        return $this->rows;
    }

	/**
     * @param field_type $table
     */
    public function setTable ($table)
    {
        $this->table = $table;
    }

	/**
     * @param field_type $modifytype
     */
    public function setModifytype ($modifytype)
    {
        $this->modifytype = $modifytype;
    }

	/**
     * @param field_type $columnNum
     */
    public function setColumnNum ($columnNum)
    {
        $this->columnNum = $columnNum;
    }

	/**
     * @param field_type $rowNum
     */
    public function setRowNum ($rowNum)
    {
        $this->rowNum = $rowNum;
    }

	/**
     * @param field_type $columns
     */
    public function setColumns ($columns)
    {
        $this->columns = $columns;
    }

	/**
     * @param field_type $rows
     */
    public function setRows ($rows)
    {
        $this->rows = $rows;
    }
	

}